<?php

namespace App\Repositories;

use App\Models\FeeConfig;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class FeeConfigRepository
 * @package App\Repositories
 * @version May 24, 2018, 10:49 am CST
 *
 * @method FeeConfig findWithoutFail($id, $columns = ['*'])
 * @method FeeConfig find($id, $columns = ['*'])
 * @method FeeConfig first($columns = ['*'])
*/
class FeeConfigRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'park_code',
        'rule',
        'rule_type',
        'car_type',
        'period_time',
        'free_time',
        'start_time',
        'start_money',
        'adders_time',
        'adders_money',
        'period_top'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return FeeConfig::class;
    }
}
